package com.example.basicdemo.model.result;

import com.example.basicdemo.model.domain.DegreeLDAPDomain;
import com.example.basicdemo.model.response.SwitchRentalStatusResponse;
import com.isyscore.os.dev.api.IsyscoreResult;

import java.util.List;

/**
 * 修改组织状态
 */
public class SwitchRentalStatusResult implements IsyscoreResult<DegreeLDAPDomain> {

    private SwitchRentalStatusResponse response;

    public SwitchRentalStatusResult(SwitchRentalStatusResponse response) {
        this.response = response;
    }

    public SwitchRentalStatusResponse getResponse() {
        return response;
    }

    public void setResponse(SwitchRentalStatusResponse response) {
        this.response = response;
    }

    /**
     * 是否成功
     *
     * @return
     */
    @Override
    public boolean isSuccess() {
        return response == null ? false : response.isSuccess();
    }

    /**
     * 解析单例数据
     * 如果返回数据为基本类型,则无需实现该方法
     *
     * @return
     */
    @Override
    public DegreeLDAPDomain parseData() {
        return null;
    }

    /**
     * 解析列表数据
     * 如果返回数据为基本类型,则无需实现该方法
     *
     * @return
     */
    @Override
    public List<DegreeLDAPDomain> parseListData() {
        return null;
    }
}
